home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3209 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: mail2news.demon.co.uk!hpl3sn03.cern.ch
  2. From: Dan Pop <danpop@mail.cern.ch>
  3. Newsgroups: comp.unix.shell,comp.lang.c
  4. Subject: Re: slowing it down
  5. Date: Sat, 27 Jan 1996 01:12:11 +0100
  6. Organization: CERN European Lab for Particle Physics
  7. Message-ID: <9601270012.AA09395@dxmint.cern.ch>
  8. References: <4ebh99$5q9@monmouth.edu>
  9. X-NNTP-Posting-Host: hpl3sn03.cern.ch
  10. X-Newsreader: NN version 6.5.0 #7 (NOV)
  11. X-Mail2News-Path: dxmint.cern.ch!hpl3sn03.cern.ch
  12.  
  13. s0213031@moncol.monmouth.edu (RAJIV RODRIGUES) writes:
  14.  
  15. >I ran a simple 'cat' on a DEC ALPHA (Digital Unix) to display a long (!) file.
  16. >I'm looking for some way to slow down ( not a pager ) the listing, so that
  17. >it scrolls at a comfortable speed. I tried a 'nice' at lowest priority with
  18. >no discernable effect.
  19. >
  20. >Anyone know any other utilities I could use?
  21.  
  22. The right tool for this job is a serial terminal.  You can control the
  23. scrolling speed by playing with the baud rate :-)  Or by enabling smooth
  24. scroll (if available).
  25.  
  26. Another solution is to write your own 'cat', which waits a certain amount
  27. of time before displaying a new line.  The usleep function (nonstandard,
  28. but available on your platform) is all you need for the job.
  29.  
  30. Dan
  31. -- 
  32. Dan Pop
  33. CERN, CN Division
  34. Email: danpop@mail.cern.ch 
  35. Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
  36.